//! 基本测试验证
#[cfg(test)]
mod basic_tests {
    use crate::core::*;
    use std::collections::HashMap;
    use std::time::SystemTime;
    use serde_json::json;
    
    #[test]
    fn test_configuration_environment_creation() {
        let env = ConfigEnvironment {
            application: "test-app".to_string(),
            profile: "dev".to_string(),
            label: "master".to_string(),
        };
        
        assert_eq!(env.application, "test-app");
        assert_eq!(env.profile, "dev");
        assert_eq!(env.label, "master");
    }
    
    #[test]
    fn test_configuration_data_creation() {
        let env = ConfigEnvironment::default();
        let config = crate::config::RustCloudConfig::default();
        
        let data = ConfigurationData {
            environment: env.clone(),
            config,
            version: "v1.0.0".to_string(),
            last_modified: SystemTime::now(),
            source: "test".to_string(),
            properties: HashMap::new(),
        };
        
        assert_eq!(data.environment.application, env.application);
        assert_eq!(data.version, "v1.0.0");
        assert_eq!(data.source, "test");
        assert!(data.properties.is_empty());
    }
}